{/*
* @author PSI
* @copyright 2015 - present
* @license GPL v3
*/}
<layout name="layout" />
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/MainForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/CategoryEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsImportForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/SafetyInventoryEditForm.js?dt={$dtFlag}"
  type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/UX/CellEditing.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsCategoryField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsParentCategoryField.js?dt={$dtFlag}"
  type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsBrandField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsBOMEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/SubGoodsField.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsUnitField.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/SLN0001/Goods/GoodsPriceSystemEditForm.js?dt={$dtFlag}"
  type="text/javascript"></script>

<script>
  PCL.onReady(() => {
    const app = PCL.create("PSI.App", {
      userName: "{$loginUserName}",
      productionName: "{$productionName}",
      appHeaderInfo: {
        title: "{$title}"
      }
    });

    app.add(PCL.create("PSI.SLN0001.Goods.MainForm", {
      pAddCategory: "{$pAddCategory}",
      pEditCategory: "{$pEditCategory}",
      pDeleteCategory: "{$pDeleteCategory}",
      pAddGoods: "{$pAddGoods}",
      pEditGoods: "{$pEditGoods}",
      pDeleteGoods: "{$pDeleteGoods}",
      pImportGoods: "{$pImportGoods}",
      pGoodsSI: "{$pGoodsSI}",
      pAddBOM: "{$pAddBOM}",
      pEditBOM: "{$pEditBOM}",
      pDeleteBOM: "{$pDeleteBOM}",
      pPriceSystem: "{$pPriceSystem}",
      pExcel: "{$pExcel}"
    }));
  });
</script>
